import request from "@/request";
import type {ISysMenuResponseData} from "@/api/menu/type.ts";
import type {IBaseResponseData} from "@/api/type.ts";
enum API {
    // 获取全部菜单与按钮的标识数据--地址
    SYS_ALL_MENU="/sys/allMenu"
}
// 获取全部菜单与按钮的标识数据
export const getSysAllMenu = ()=>request.get<any,ISysMenuResponseData>(API.SYS_ALL_MENU);
// 更改菜单状态:/sys/menu/:id/:status
export const putSysMenu = (id:string,status:number)=>request.put<any,IBaseResponseData>(`/sys/menu/${id}/${status}`)